package cn.csc.module.shoppingCard.controller.admin.project.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDateTime;

import static cn.csc.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@ApiModel(value = "管理后台 - 购物卡项目 Excel 导出 Request VO", description = "参数和 CardProjectPageReqVO 是一致的")
@Data
public class CardProjectExportReqVO {

    @ApiModelProperty(value = "项目名称")
    private String name;

    @ApiModelProperty(value = "面值")
    private BigDecimal faceValue;

    @ApiModelProperty(value = "总张数")
    private Byte totalNum;

    @ApiModelProperty(value = "激活数量")
    private Byte activateNum;

    /**
     * 状态(0-无效，1-有效)
     */
    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "有效期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] expireDate;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] createTime;

}
